Page({
  data: { list: [] },
  onShow(){ this.setData({ list: wx.getStorageSync('favs') || [] }) },
  remove(e){
    const id = e.currentTarget.dataset.id
    const list = (wx.getStorageSync('favs') || []).filter(i=> i.id!==id)
    wx.setStorageSync('favs', list)
    this.setData({ list })
    wx.showToast({ title: '已取消', icon: 'none' })
  }
})







